﻿using GalaSoft.MvvmLight.Command;
using NicoView.ViewModel.Message;
using NicoView.Model.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace NicoView.ViewModel
{
    public class NicoViewSelfUserViewModel : NicoViewViewModelBase
    {

        public NicoViewSelfUserViewModel()
        {


            this.InternalApplication.Instance.PropertyChanged += this.OnPropertyChanged;

            
            
        }





        private NotificationNicoSelfUser selfUser
        {
            get
            {
                return this.InternalApplication.Instance.SelfUser;
            }
        }

        public bool IsLoggedIn
        {
            get
            {
                return this.selfUser != null;
            }
        }

        public string Id
        {
            get
            {
                if (!IsLoggedIn) return "";
                return this.selfUser.Id;
            }
        }

        public string NickName
        {
            get
            {
                if (!IsLoggedIn) return "";
                return this.selfUser.NickName;
            }
        }

        


       
    }
}
